 package sza.oracle.apps.ap.oie.workflow.apexp.webui;
 
 import oracle.apps.ap.oie.workflow.apexp.webui.NotifExpLinesCO;
 import oracle.apps.fnd.common.VersionInfo;
 import oracle.apps.fnd.framework.OAApplicationModule;
 import oracle.apps.fnd.framework.OAViewObject;
 import oracle.apps.fnd.framework.webui.OAPageContext;
 import oracle.apps.fnd.framework.webui.beans.OAWebBean;
 import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
 import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
 import oracle.jbo.AttributeDef;
 import oracle.jbo.Row;
 import oracle.jbo.ViewLink;
 import sza.oracle.apps.ap.oie.utility.SzaOIEUtil;
 
 public class SzaNotifExpLinesCO extends NotifExpLinesCO
 {
   public static final String RCS_ID = "$Header$";
   public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header$", "%packagename%");
 
   public void processRequest_test(OAPageContext pageContext, OAWebBean webBean)
   {
     String LogMessage = "";
     String LogFunction = "";
     LogFunction = "SZA SzaNotifExpLinesCO.processRequest";
 
     LogMessage = "SZA SzaNotifExpLinesCO.processRequest - Start";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
     String ReportHeaderId = pageContext.getParameter("ReportHeaderId");
 
     LogMessage = "ReportHeaderId:" + ReportHeaderId;
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
     SzaOIEUtil.printContextParameter(pageContext, webBean);
 
     SzaOIEUtil.printContextTransaction(pageContext, webBean);
 
     SzaOIEUtil.printContextSession(pageContext, webBean);
 
     OAApplicationModule am = pageContext.getApplicationModule(webBean);
 
     LogMessage = "Expense Type AM Name is =>" + am.getFullName();
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
     OAViewObject DetailVo = (OAViewObject)am.findViewObject("ExpenseReportLineBudgetControlVO1");
 
     if (DetailVo != null)
     {
       LogMessage = "SZA SzaHeaderKffCO.processSzaDeptApproverChange - Found VO ExpenseReportLineBudgetControlVO1 for AM. This means we have re-entered the page.";
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
     }
     else
     {
       LogMessage = "SZA SzaHeaderKffCO.processSzaDeptApproverChange - CAN NOT FIND VO ExpenseReportLineBudgetControlVO1.";
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
       DetailVo = (OAViewObject)am.createViewObject("ExpenseReportLineBudgetControlVO1", "sza.oracle.apps.ap.oie.server.ExpenseReportLineBudgetControlVO");
     }
 
     if (DetailVo != null)
     {
       LogMessage = "SZA SzaHeaderKffCO.processSzaDeptApproverChange - FOUND VO ExpenseReportLineBudgetControlVO1 for AMO.";
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
       OAWebBean SzaBudgetControlPrecentCol = webBean.findIndexedChildRecursive("SzaBudgetControlPrecentCol");
 
       if (SzaBudgetControlPrecentCol != null)
       {
         SzaBudgetControlPrecentCol.setRendered(true);
       }
 
       DetailVo.setWhereClause("  1 = 1 And report_header_id = '80116' ");
       DetailVo.setWhereClauseParams(null);
 
       DetailVo.executeQuery();
 
       LogMessage = "SZA ExpenseTypeTreeCO.processTreeNodePost - DetailVo.getRowCount():" + DetailVo.getRowCount();
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
       DetailVo.reset();
 
       while (DetailVo.hasNext())
       {
         Row row = DetailVo.getCurrentRow();
 
         String ReportLineId = "(String)";
 
         LogMessage = "SZA ExpenseTypeTreeCO.processTreeNodePost - ReportLineId:" + ReportLineId.toString();
 
         SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
         DetailVo.next();
       }
 
     }
 
     ViewLink vl = am.findViewLink("ExpenseReportLineBudgetControlVL");
 
     OAViewObject MasterVo = (OAViewObject)am.findViewObject("NotifCashLinesVO");
 
     if (vl == null)
     {
       AttributeDef[] masterLinkAttrs = { MasterVo.findAttributeDef("ReportLineId") };
 
       AttributeDef[] detailLinkAttrs = { DetailVo.findAttributeDef("ReportLineId") };
 
       vl = am.createViewLinkBetweenViewObjects("ExpenseReportLineBudgetControlVL", "ExpenseReportLineBudgetControlAcc", MasterVo, masterLinkAttrs, DetailVo, detailLinkAttrs, null);
     }
 
     super.processRequest(pageContext, webBean);
 
     OAAdvancedTableBean cashLinesTbl = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("cashLinesTbl");
 
     if (cashLinesTbl != null)
     {
       OAMessageStyledTextBean SzaBudgetControlPercent = (OAMessageStyledTextBean)cashLinesTbl.findIndexedChildRecursive("SzaBudgetControlPercent");
 
       if (SzaBudgetControlPercent != null)
       {
         SzaBudgetControlPercent.setText("10%");
       }
     }
 
     LogMessage = "SZA SzaNotifExpLinesCO.processRequest - End";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
   }
 
   public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
   {
     String LogMessage = "";
     String LogFunction = "";
     LogFunction = "SZA SzaNotifExpLinesCO.processFormRequest";
 
     LogMessage = "SZA SzaNotifExpLinesCO.processFormRequest - Start";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
     super.processFormRequest(pageContext, webBean);
 
     LogMessage = "SZA SzaNotifExpLinesCO.processFormRequest - End";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
   }
 }